package com.star.bookstore.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author wuLiFei
 * @email wuLiFei@gmail.com
 * @date 2021-03-07 13:57:20
 */
@Data
@TableName("pms_comment")
public class CommentEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 评论id
	 */
	@TableId
	private Long comId;
	/**
	 * 发评论的用户id
	 */
	private Long userId;
	/**
	 * 评论所属的书本id
	 */
	private Long categoryId;
	/**
	 * 评论的信息
	 */
	private String comMessage;
	/**
	 * 创建时间，自动创建（三个月后清除）
	 */
	private Date createTime;

	@TableField(exist = false)
	private String createTimeStr;

	private String comUsername;

}
